using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Text;
using System.IO; 


namespace GAscheduler
{
	static class RoomManager
	{
		static List<Room> Rooms = new List<Room>();

        public static void LoadCSV(string filename)
		{
			StreamReader readFile = new StreamReader(filename);

      			string line;
     			string[] row;

      			while ((line = readFile.ReadLine()) != null)
     			{
        			row = line.Split(',');
				    Rooms.Add(new Room(row[0], row[1], row[2]));
      			}
		}
		
		public static int Length()
		{
			return Rooms.Count;
		}
      
        public static Room get(int i)
        {
            return Rooms[i];  
        }

	}
}
